import Vue from 'vue'
import App from './App'

// vuex
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission


// 引入全局uView
import uView from '@/uni_modules/uview-ui'

// import mixin from './common/mixin'

// 导入并挂载全局的分享方法
import share from '@/utils/share.js'
// 导入路线规划方法
import routing from '@/utils/routing.js'
Vue.mixin(share)
Vue.prototype.$store = store
Vue.prototype.$routing = routing // 全局挂载路线规划
Vue.config.productionTip = false

App.mpType = 'app'
Vue.use(plugins)
Vue.use(uView)

// #ifdef MP
// 引入uView对小程序分享的mixin封装
// const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
// Vue.mixin(mpShare)
// #endif

// Vue.mixin(mixin)

const app = new Vue({
    store,
    ...App
})

// 引入请求封装
// require('./util/request/index')(app)

app.$mount()
